#include "Atlas/atlasinspector.h"

AtlasInspector::AtlasInspector(Atlas *atlas)
{
    m_Atlas =   atlas;

    QFormLayout * layout = new QFormLayout();

    m_Layout    =   new QVBoxLayout();

    m_Width     =   new QLineEdit(QString::number(atlas->Width()));
    m_Height    =   new QLineEdit(QString::number(atlas->Height()));

    layout->addRow("Width ", m_Width);
    layout->addRow("Height", m_Height);

    QObject::connect(m_Width, SIGNAL(editingFinished()), this, SLOT(UpdateWidth()));
    QObject::connect(m_Height, SIGNAL(editingFinished()), this, SLOT(UpdateHeight()));

    this->setLayout(layout);

}


void AtlasInspector::UpdateWidth()
{

}

void AtlasInspector::UpdateHeight()
{

}
